<?php

class Form_Customer extends Zend_Form
{

    public function init()
    {
    	$filter_trim = new Zend_Filter_StringTrim();
    	$filter_stripTags = new Zend_Filter_StripTags();
    	
        $id = new Zend_Form_Element_Hidden("id");
        //$id->setLabel("Id: ");
        $id->setRequired(true);
        $intValidator = new Zend_Validate_Int();
        $this->addElement($id, "id");
        
        
        $email = new Zend_Form_Element_Text("email");
        $email->setLabel("Email: ");
        $email->addFilter($filter_trim);
        $email->addFilter($filter_stripTags);
        $emailValidator = new Zend_Validate_EmailAddress();
        $this->addElement($email, "email");
        
        
        $name = new Zend_Form_Element_Text("name");
        $name->setLabel("Name: ");
        $name->addFilter($filter_trim);
        $name->addFilter($filter_stripTags);
        $this->addElement($name, "name");
        
        $tell = new Zend_Form_Element_Text("tell");
        $tell->setLabel("Tell: ");
        $tell->addFilter($filter_trim);
        $tell->addFilter($filter_stripTags);
        $this->addElement($tell, "tell");
        
        $mobile = new Zend_Form_Element_Text("mobile");
        $mobile->setLabel("Mobile: ");
        $mobile->addFilter($filter_trim);
        $mobile->addFilter($filter_stripTags);
        $this->addElement($mobile, "mobile");
        
        $state = new Zend_Form_Element_Text("state");
        $state->setLabel("State: ");
        $state->addFilter($filter_trim);
        $state->addFilter($filter_stripTags);
        $this->addElement($state, "state");
        
        $city = new Zend_Form_Element_Text("city");
        $city->setLabel("City: ");
        $city->addFilter($filter_trim);
        $city->addFilter($filter_stripTags);
        $this->addElement($city, "city");
        
        $address = new Zend_Form_Element_Text("address");
        $address->setLabel("Address: ");
        $address->setRequired();
        $address->addFilter($filter_trim);
        $address->addFilter($filter_stripTags);
        $this->addElement($address, "address");
        
        $country = new Zend_Form_Element_Text("country");
        $country->setLabel("Country: ");
        $country->addFilter($filter_trim);
        $country->addFilter($filter_stripTags);
        $this->addElement($country, "country");
        
        $zipcode = new Zend_Form_Element_Text("zipcode");
        $zipcode->setLabel("Zip code: ");
        $zipcode->addFilter($filter_trim);
        $zipcode->addFilter($filter_stripTags);
        $this->addElement($zipcode, "zipcode");
        
        
        $submit = new Zend_Form_Element_Submit("submit");
        $this->addElement($submit, "submit");
    }


}

